<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
<meta name="format-detection" content="telephone=no">
<meta name="referrer" content="never">
<style>
h3{
text-align:center;
color:#fd7299;
}
strong{
color:#fd7299;
}
.btn {
background-color: rgba(255, 255, 255, 0.3);
border-radius:15px;
border-color: #fd7299;
color: #fd7299;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
display: block;
margin: 0 auto;
border-radius:15px;
}
.btn:hover {
background-size: 100% 100%;
color: #fff;
}
</style>
<title>小爱音色添加</title>
</head>
<body style='background:url("https://land.xiaomi.net/mcfe/ai-personal-tts-share-fe/static/media/bg.cdfc1b2a.png") no-repeat center top;background-size:cover;background-repeat:no-repeat;background-attachment: fixed;'>
<h3>请输入音色分享链接或ID！</h3>
<div id='add' style='display:block;margin:20px auto'></div>
<div style='position:fixed; bottom: 10px;'><a id='qun' style='color:#fd7299;' href='https://jq.qq.com/?_wv=1027&k=5R7auqc'>小爱音色分享群：631954691</a></div>
<div style='position: absolute; bottom: 10px; right: 10px;'><a style='color:#fd7299;' href='../'>返回音色列表</a></div>
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1278801815'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1278801815' type='text/javascript'%3E%3C/script%3E"));</script><script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script>$('#cnzz_stat_icon_1278801815 a')[0].style.display = 'none';$('#cnzz_stat_icon_1278801815 a')[0].style.color = '#fd7299';</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?ee79cf186561c1277daf15c081417211";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script>
window.onload = function() {
var add = document.getElementById('add');
var index = document.createElement('div');
index.id = 'index';
var button = document.createElement('button');
index.style = 'display:block;margin:0 auto';
var input = document.createElement('input');
input.type = 'text';
input.id = 'url';
input.name = 'url';
input.style = 'display:block;margin:0 auto; width:80%; height:50px;font-size: 16px;color: #fff;border-color:#fd7299;outline: none;background:rgba(255, 255, 255, 0.2);border-radius:15px;';
index.append(document.createElement('br'));
button.onclick = function(){
add_share($('#url').val());
};
button.style = 'display:block;margin:20px auto';
button.className = 'btn';
button.innerHTML = '添加';
index.append(input);
index.append(button);
add.append(index);
}
function add_share(url){
if(url == ''){
alert('您还没有输入分享链接！');
return '';
}
	$.getJSON('//cf.wxfsq.com/xa/list_new.php',
	{type:'add_json',text:url},
	function(data){
		alert(data.msg);
		$('#url').val('');
		if(data.code == 0){
			location.href = '../';
		}
	});
}
</script>
</body>
</html>